{subtemplate jameson_read:gjj/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div class="border-cc uk-margin-top shaixuan">
	<div class="back-top">{$counts}{lang jameson_read:rennitiaoxuan}</div>
	<div class="border_t cl pt5 pb5 pl10 pr10">
		<div class="z width-100 xs1 xw1">
			{lang jameson_read:fenlei}:
		</div>
		<div class="catelink">
			<a class=" {if !isset($_GET['category_id']) || ($_GET['category_id']=='empty')}uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'category_id','empty');}">{lang jameson_read:quanbu}</a>
			{loop $categorys $rootkey $category}
				<a class=" {if $_GET['category_id']==$category['category_id']}uk-text-danger{/if}"  href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'category_id',$category['category_id']);}">{$category['category_name']}&gt;</a>
				{loop $category['sub'] $subkey $sub}
					<a class=" {if $_GET['category_id']==$sub['category_id']}uk-text-danger{/if}"  href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'category_id',$sub['category_id']);}">{$sub['category_name']}</a>
				{/loop}
			{/loop}
		</div>
	</div>
	<div class="border_t cl pt5 pb5 pl10 pr10">
		<div class="z width-100 xs1 xw1">
			{lang jameson_read:zhuangtai}:
		</div>
		<div class="catelink">
			<a class="  {if !isset($_GET['plan'])||($_GET['plan']=='empty')}uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan','empty');}">{lang jameson_read:quanbu}</a>
			<a class=" {if isset($_GET['plan']) && !$_GET['plan']}uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan',0);}">{lang jameson_read:lianzaizhong}</a>
			<a class=" {if $_GET['plan']==1}uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan',1);}">{lang jameson_read:yiwanjie}</a>
		</div>
	</div>
	<div class="border_t cl pt5 pb5 pl10 pr10">
		<div class="z width-100 xs1 xw1">{lang jameson_read:zishu}</div>
		<div class="catelink">
			<a class="  {if !isset($_GET['zishu'])||($_GET['zishu']=='empty')}uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu','empty');}">{lang jameson_read:quanbu}</a>
			<a class=" {if intval($_GET['zishu'] == 1000000) }uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',1000000);}">{lang jameson_read:zishuduan1}</a>
			<a class=" {if intval($_GET['zishu'] == 5000000) }uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',5000000);}">{lang jameson_read:zishuduan2}</a>
			<a class=" {if intval($_GET['zishu'] == 10000000) }uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',10000000);}">{lang jameson_read:zishuduan3}</a>
			<a class=" {if intval($_GET['zishu'] == 10000001) }uk-text-danger{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',10000001);}">{lang jameson_read:zishuduan4}</a>
		</div>
	</div>
</div>


<div class="uk-grid-collapse uk-margin-top uk-margin-bottom" uk-grid>
	<div class="uk-width-expand">
		{if $books}
		<div class="border-cc">
			<table class="uk-table uk-table-justify uk-table-small updatetable">
				<thead>
					<tr class="back-top" style="display: table-row;">
						<th class="tdcate">{lang jameson_read:fenlei}</th>
						<th>{lang jameson_read:shuming}</th>
						<th class="tdauthor uk-text-right">{lang jameson_read:zuozhe}</th>
					</tr>
				</thead>
			    <tbody>
			    	{loop $books $k $c}
			        <tr>
			            <td class="tdcate">
			            	<a class="xg1 xs1" href="{eval echo jamesonurl('category',$book['category_id']);}">[{$c['category_name']}]</a>
			            </td>
			            <td class="uk-text-truncate">
			            	<a class="color-360" href="{eval echo jamesonurl('book',$c['book_id']);}">{$c['book_name']}</a>
			            </td>
			            <td class="uk-text-right xg1 xs1 tdauthor"><a href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$c['author']}">{$c['author']}</a> <span class="pipe"> &nbsp;</span> {eval echo dgmdate($c['addtime']);}</td>
			        </tr>
			        {/loop}
			    </tbody>
			</table>
		</div>
		<div class="cl uk-margin-bottom uk-margin-top">{$pageshow}</div>
		{else}
			<div class="uk-alert-danger" uk-alert>{lang jameson_read:meizhaodaoxiangguantushu}</div>
		{/if}
	</div>
	<div class="uk-width-medium">
		{if $_G['jameson_read']['shuxinglist']}
		<div class="border-cc uk-margin-left uk-margin-bottom">
			<div class="back-top">{lang jameson_read:tuijianbiaoqian}</div>
			<div class="uk-padding-small">
				{loop $_G['jameson_read']['shuxinglist'] $tag}
					<a href="./plugin.php?id=jameson_read&contrl=index&act=tag&tag={$tag}" class="uk-badge">{$tag}</a>
				{/loop}
			</div>
		</div>
		{/if}
		{if $adv[0]['adv']}
		<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
			{eval echo stripcslashes($adv[0]['adv']);}
		</div>
		{/if}
		<div class="border-cc  uk-margin-left">
			<div class="back-top">{lang jameson_read:yuedubang}</div>
			<ul class="uk-margin-remove pl10 pr10 uk-list-paihang">
				{loop $paihangbang['yuedu'] $k $book}
					{if $k < 12}
					<li class="uk-text-truncate">
						<span class="num num_{$k}">{eval echo $k+1;}</span>
						<a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
					</li>
					{/if}
				{/loop}
			</ul>
		</div>
		{if $adv[1]['adv']}
		<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
			{eval echo stripcslashes($adv[1]['adv']);}
		</div>
		{/if}
		<div class="border-cc uk-margin-left uk-margin-top">
			<div class="back-top">{lang jameson_read:shoucangbang}</div>
			<ul class="uk-margin-remove pl10 pr10 uk-list-paihang">
				{loop $paihangbang['shoucang'] $k $book}
					{if $k < 12}
					<li class="uk-text-truncate">
						<span class="num num_{$k}">{eval echo $k+1;}</span>
						<a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
					</li>
					{/if}
				{/loop}
			</ul>
		</div>
		{if $adv[2]['adv']}
		<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
			{eval echo stripcslashes($adv[2]['adv']);}
		</div>
		{/if}
	</div>
</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
{subtemplate jameson_read:gjj/read_footer}